﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows;

namespace Wilke.Interactive.Drone.PlayGround.Controls
{
    class PieSegment : Image
    {
        private bool selected;
        public bool Selected
        {
            get { return selected; }
            set
            {
                selected = value;
                ImageSourceConverter imgConv = new ImageSourceConverter();
                string path = String.Format("pack://application:,,{0}", selected ? SelectedImage : DefaultImage);
                base.Source = (ImageSource)imgConv.ConvertFromString(path);
            }
        }
        public string DefaultImage { get; set; }
        public string SelectedImage { get; set; }

        protected override void OnRender(DrawingContext dc)
        {
            base.OnRender(dc);
        }
    }
}
